package com.zygh.lz.entity.vo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zygh.lz.entity.app.AppPicture;
import com.zygh.lz.entity.app.AppTrailerAbnormalCause;
import com.zygh.lz.entity.app.AppTrailerInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 拖车上报
 *
 * @author jhaol
 */
@Data
@ApiModel(value = "AppTrailerInfoVO", description = "拖车上报VO")
public class AppTrailerInfoVO {
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "拖车编号")
    @TableField("`code`")
    private String code;

    @ApiModelProperty(value = "车牌号")
    private String vehiclePlate;

    @ApiModelProperty(value = "车辆类型")
    private String vehicleType;

    @ApiModelProperty(value = "车主电话")
    private String phone;

    @ApiModelProperty(value = "道路类型（0：主干道  1：次干道）")
    private Integer trafficType;

    @ApiModelProperty(value = "违法地址")
    private String illegalAddress;

    @ApiModelProperty(value = "停车场编号")
    private Integer parkCode;

    @ApiModelProperty(value = "停车场地址")
    private String parkPlace;


    @ApiModelProperty(value = "警员警号")
    private String warningSignal;

    @ApiModelProperty(value = "警员姓名")
    private String staffName;

    @ApiModelProperty(value = "警员部门id")
    private Integer sectionId;

    @ApiModelProperty(value = "警员部门")
    private String sectionName;


    @ApiModelProperty(value = "经度：例如：113.684054违法坐标")
    private String longitude;

    @ApiModelProperty(value = "纬度：例如：34.808164")
    private String latitude;

    @ApiModelProperty(value = "状态 0：现场  1：上车  2：到地方")
    private Integer status;

    @ApiModelProperty(value = "图片")
    @TableField(exist = false)
    private String picture;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private Date creatTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "最新修改时间")
    private Date updateLoad;


    @ApiModelProperty(value = "状态0：未发送短信   1：发送短信成功  2：发送短信失败")
    private Integer smsStatus;

    @ApiModelProperty(value = "司机姓名")
    private String driverName;

    @ApiModelProperty(value = "司机上报拖车信息编号")
    private String driverCode;

    @ApiModelProperty(value = "拖车司机上报记录审批状态0：待审批 1：待补充  2：通过 3：未通过 4：异常待审核")
    private Integer driverState;

    @ApiModelProperty(value = "标识0：未同步  1：同步")
    private Integer signboard;

    @ApiModelProperty(value = "是否删除(0：正常   1：删除)")
    private Integer isDel;

    @ApiModelProperty(value = "是否进行异常检测")
    private Integer isCheckAbnormal;

    @ApiModelProperty(value = "拖车原因（1：违停   2：特勤  3：故障  4：事故）")
    private Integer trailerReason;

    @ApiModelProperty(value = "是否高架(0:是   1：不是)")
    private Integer isElevated;

    @ApiModelProperty(value = "拖车车牌号")
    private String licensePlate;

    @ApiModelProperty(value = "拒绝原因")
    private String rejectReason;

    private List<AppTrailerAbnormalCause> abnormalCauseList;

    private AppPicture trailerPicture;
}
